Hey. I"m trying to read a file of words into the array char* array[80] and I can't seem to make it work. I keep getting runtime errors when I use this:
Code:char* word[80]; char str[80]; while(b_file.eof()==0) { b_file>>str; len = strlen(str); word[i] = new (char[len]); word[i++] =str; }
What am I doing wrong?